import Request from '@/utils/request.js'

// 添加评分标准
export const AddScoring = (scoringData) => {
    return Request.post("/scoring/add", scoringData);
}

// 删除评分标准
export const DeleteScoring = (scoringId) => {
    return Request.get(`/scoring/delete?id=${scoringId}`);
}

// 更新评分标准
export const UpdateScoring = (scoringData) => {
    return Request.post("/scoring/update", scoringData);
}

// 获取评分标准详情
export const GetScoring = (scoringId) => {
    return Request.get(`/scoring/get?id=${scoringId}`);
}

// 分页查询评分标准列表（管理员）
export const ListScoringByPage = (queryParams) => {
    return Request.post("/scoring/list", queryParams, {
        headers: {
            'Content-Type': 'application/json'
        }
    });
}

// 分页查询当前用户的评分标准列表
export const ListMyScoringByPage = (queryParams) => {
    return Request.post("/scoring/list/my", queryParams, {
        headers: {
            'Content-Type': 'application/json'
        }
    });
}